export default [
    {
        name: 'login',
        path: '/login',
        component: () => import('../views/user/Login.vue')
    },
    {
        name: 'register',
        path: '/register',
        component: () => import('../views/user/Register.vue')
    },
    {
        name: 'bind-business',
        path: '/bind-business',
        component: () => import('../views/ee/BindBusiness.vue')
    },
    {
        path: '/self',
        component: () => import('../views/user/SelfView.vue'),
        children: [
            {
                name: 'self-center',
                path: 'center',
                component: () => import('../views/user/self/CenterView')
            },
            {
                name: 'self-course',
                path: 'course',
                component: () => import('../views/user/self/CourseView')
            },
            {
                name: 'self-collection',
                path: 'collection',
                component: () => import('../views/user/self/CollectionView')
            },
            {
                name: 'self-order',
                path: 'order',
                component: () => import('../views/user/self/OrderView')
            },
            {
                path: '*',
                redirect: {
                    name: 'self-center'
                }
            }
        ]
    }
]
